﻿using MCPlatform.Builder.WorkStation;
using MCPlatform.UI.Components;
using Panuon.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MCPlatform.ViewModels.Motion
{
    public class StationSettingViewModel : ViewModelBase
    {
        public int StationID { get; set; } = 0;

        public IStation? station { get; set; }

        public bool IsShield
        {
            get => _isShield;
            set
            {
                Set(ref _isShield, value);

                if (station!=null)
                {
                    station.IsShield = value;
                }
            }
               
        }
        private bool _isShield;

        public string StationName
        {
            get => _StationName;
            set { Set(ref _StationName, value); }
        }
        private string _StationName = "Test";

        public StationSettingViewModel()
        {
           
        }
        public void Initial()
        {
            station?.Initial();
        }

        public void DryRun()
        {
            station?.DryRun();
        }

        public void Stop()
        {
            station?.Stop();
        }

        public void Test()
        {
            station?.Test();
        }

        public void Execute()
        {
            station?.Execute();
        }
    }
}
